// import {
//   GET,
//   // POST,
//   // DELETE,
//   // PATCH, 
//   PUT
// } from '@/utils/request.js'
// import { ALL } from './baseURL.js'
import { ALL } from './baseUrl'
import request from '@/utils/request'

// export const TestSignalR = params => GET(`/all/api/Hub/TestSignalR' params).then(res => res.data);
//  ------------  监测类设备预警  ----------------------------------
// 获取
// export const getSafety = params => GET('/all/OData/SafetyWarningSettings' params).then(res => res.data)
export function getSafety(params) {
  return request({
    url: '/all/OData/SafetyWarningSettings',
    method: 'get',
    params: params
  })
}
// export const addSafety = params => PUT('/all/api/services/app/SafetyWarningSettingService/Add' params).then(res => res.data)
export function addSafety(params) {
  return request({
    url: '/all/api/services/app/SafetyWarningSettingService/Add',
    method: 'put',
    params: params
  })
}